package elicecn.codegen;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 数据表信息，对应一个类
 * 
 * @author 屹砾
 * @email eli.wuhan@gmail.com
 * @time 2009-1-20
 */
public class TableClass implements Serializable {
	private static final long serialVersionUID = -1598504868015287649L;
	// 列/字段的名称和类型信息
	private List<ColumnField> columns = new ArrayList<ColumnField>(0);
	// 导入类集合
	private List<Class<Serializable>> importClasses = new ArrayList<Class<Serializable>>(
			0);
	// 表名
	private String tableName;
	// 基本包名
	private String basePackageName;
	// 引用框架类基本包名
	private String baseStructPackageName;
	// 类名
	private String className;
	// 主键列名
	private String pkColumnName;
	// 主键类字段
	private String pkFieldName;

	public List<ColumnField> getColumns() {
		return columns;
	}

	public void setColumns(List<ColumnField> columns) {
		this.columns = columns;
	}

	public List<Class<Serializable>> getImportClasses() {
		return importClasses;
	}

	public void setImportClasses(List<Class<Serializable>> importClasses) {
		this.importClasses = importClasses;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getBasePackageName() {
		return basePackageName;
	}

	public void setBasePackageName(String basePackageName) {
		this.basePackageName = basePackageName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getPkColumnName() {
		return pkColumnName;
	}

	public void setPkColumnName(String pkColumnName) {
		this.pkColumnName = pkColumnName;
	}

	public String getPkFieldName() {
		return pkFieldName;
	}

	public void setPkFieldName(String pkFieldName) {
		this.pkFieldName = pkFieldName;
	}

	public String getBaseStructPackageName() {
		return baseStructPackageName;
	}

	public void setBaseStructPackageName(String baseStructPackageName) {
		this.baseStructPackageName = baseStructPackageName;
	}

}
